/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const casesRouter = {
  path: '/case',
  component: Layout,
  redirect: '/case/caseinfo',
  name: 'Case',
  meta: {
    title: '案件管理',
  },
  children: [
    // {
    //   path: 'office',
    //   component: () => import('@/views/case/office'),
    //   name: 'OfficeInfo',
    //   meta: { title: '律所信息' },
    // },
    {
      path: 'caseinfo',
      component: () => import('@/views/case/index'),
      name: 'CaseInfo',
      meta: { title: '案件信息' },
    },
    {
      path: 'archives',
      component: () => import('@/views/case/archives'),
      name: 'Archive',
      meta: { title: '归档案件' },
    },
    {
      path: 'letter',
      component: () => import('@/views/case/letter'),
      name: 'Letter',
      meta: { title: '律所函' }
    },
    {
      path: 'civil_print/:letter_id',
      component: () => import('@/views/case/print/civil_letter'),
      name: 'CivilPrint',
      props: true,
      meta: { title: '律所函打印', activeMenu: '/case/letter' }
    },
    {
      path: 'stamp',
      component: () => import('@/views/case/stamp'),
      name: 'Stamp',
      meta: { title: '律所函确认' }
    },
    {
      path: 'introduce',
      component: () => import('@/views/case/introduce'),
      name: 'Introduce',
      meta: { title: '专用介绍信' }
    },
    {
      path: 'crimi_introduce',
      component: () => import('@/views/case/criminal_intro'),
      name: 'CriminalIntroduce',
      meta: { title: '单独会见介绍信' }
    },
    {
      path: 'stamp_intro',
      component: () => import('@/views/case/stamp_intro'),
      name: 'StampIntroduce',
      meta: { title: '专用介绍信确认' }
    },
    {
      path: 'crim_stamp_intro',
      component: () => import('@/views/case/crim_stamp_intro'),
      name: 'CrimStampIntro',
      meta: { title: '独立会见介绍信确认' }
    },
    {
      path: 'intro_print/:intro_id',
      component: () => import('@/views/case/print/intro_letter'),
      name: 'IntroPrint',
      props: true,
      meta: { title: '专用介绍信打印', activeMenu: '/case/introduce' }
    },
    {
      path: 'crimi_intro_print/:intro_id',
      component: () => import('@/views/case/print/crimi_intro_letter'),
      name: 'CrimiIntroPrint',
      props: true,
      meta: { title: '刑事介绍信打印', activeMenu: '/case/crimi_introduce' }
    },
    {
      path: 'progress',
      component: () => import('@/views/case/progress'),
      name: 'Progress',
      meta: { title: '案件进度配置' }
    },
    {
      path: 'reason',
      component: () => import('@/views/case/reason'),
      name: 'Reason',
      meta: { title: '案由' }
    },
  ]
}

export default casesRouter
